import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-10-03
 * Time: 19:06
 */
public class Test {
    public static void main1(String[] args) {
        int[][] arr = new int[10][21];
        arr[0][10] = 1;
        for (int i = 1; i < arr.length; i++) {
            for (int j = 1; j < arr[i].length-1; j++) {
                arr[i][j] = arr[i-1][j+1] + arr[i-1][j-1];
            }
        }

        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length-1; j++) {
                if(arr[i][j] != 0){
                    System.out.print(arr[i][j] + " ");
                }else{
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }

/*
    public static void main2(String[] args) {
        ArrayList<Character> ret = new ArrayList<>();
        Scanner scanner = new Scanner(System.in);

        while(scanner.hasNext()){
            int num = scanner.nextInt();
            String tmp = scanner.nextLine();
            for (int i = 0; i < num; i++) {
                ret.add(tmp.charAt(0));
                System.out.println();
            }
            for (int i = 0; i < num; i++) {
                System.out.println(ret.get(i));
            }
        }
    }
*/

    public static void main(String[] args) {
        /*String str1 = "welcome";
        String str2 = "come";*/
        ArrayList<Character> ret = new ArrayList<>();
        Scanner sc = new Scanner(System.in);
        Scanner sc1 = new Scanner(System.in);
        System.out.println("请输入字符串的个数：");
        while(sc.hasNextLine()){
            int num = sc.nextInt();
            for (int i = 0; i < num; i++) {
                char ch = sc1.nextLine().charAt(0);
                ret.add(ch);

            }
            System.out.println();
            for (int i = 0; i < ret.size(); i++) {
                System.out.print(ret.get(i));
            }
        }
    }
}

